/*******************************************************************************
 * Copyright (c) 2010 Sylvain Sicard.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v2.1
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Sylvain Sicard - initial API and implementation
 ******************************************************************************/
package com.googlecode.ssdutils.beanconverter.example.business.api;

import java.util.List;

import com.googlecode.ssdutils.beanconverter.example.business.model.ItemBS;
import com.googlecode.ssdutils.beanconverter.example.business.model.ToDoListBS;

/**
 * @author Sylvain Sicard
 * 
 */
public interface TodoListBusinessService {

	/**
	 * @return
	 */
	int listCount();

	/**
	 * @param rowIndex
	 * @param value
	 */
	void createList(int rowIndex, String name);

	/**
	 * @param rowIndex
	 * @return
	 */
	ToDoListBS getListById(int listId);

	/**
	 * @param listId
	 * @return
	 */
	List<ItemBS> getAllItems(int listId);

	/**
	 * @param listId
	 * @return
	 */
	int itemCount(int listId);

	/**
	 * @param listId
	 * @param itemId
	 */
	void deleteItem(int listId, int itemId);

	/**
	 * @param selectedRow
	 * @param string
	 */
	void createItem(int listId, String string);

	/**
	 * @param selectedRow
	 */
	void deleteList(int selectedRow);

	/**
	 * @param selectedRow
	 * @param rowIndex
	 * @return
	 */
	ItemBS getItemById(int listId, int itemId);

}
